package com.zg.datapush.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 字段映射更新请求
 * @author zg
 */
@Data
@ApiModel(value = "字段映射更新请求", description = "字段映射更新请求")
public class DpFieldMappingUpdateReq {
    
    @NotNull(message = "映射ID不能为空")
    @ApiModelProperty(value = "映射ID", required = true)
    private Long id;
    
    @NotNull(message = "任务ID不能为空")
    @ApiModelProperty(value = "任务ID", required = true)
    private Long taskId;
    
    @NotBlank(message = "源字段名不能为空")
    @ApiModelProperty(value = "源字段名", required = true)
    private String sourceField;
    
    @NotBlank(message = "目标字段名不能为空")
    @ApiModelProperty(value = "目标字段名", required = true)
    private String targetField;
    
    @ApiModelProperty(value = "转换表达式")
    private String convertExpression;
    
    @ApiModelProperty(value = "排序顺序")
    private Integer sortOrder;
}
